import {createActions} from 'redux-actions';
import InterfaceConfig from '../config/InterfaceConfig.json';

export const {getProject} = createActions({
    GET_PROJECT: async() => {
        try {
            let response = await fetch(InterfaceConfig.project, {
                method: 'GET',
                mode: 'cors'
            });
            let data = await response.json();
            return data;
        } catch (e) {
            console.log(e);
        }
    }
});